<template>
  <div class="bargaining">
    <button @click="show = true">按钮</button>
    <Overlay :showoff="show" @close='close'/>
  </div>
</template>

<script>
import Overlay from "@/components/Overlay.vue";
export default {
  components: {
    Overlay
  },
  data() {
    return {
      show: false
    };
  },
  methods:{
     close(val){
          this.show = val
      }
  },
};
</script>

<style lang="scss" scoped>
@import "@css/style.scss";
.bargaining {
  width: 100%;
  height: 100%;
}
</style>